import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { ModalShareModule } from "../../modal/modal-share.module";
import { ReviewPageRoutingModule } from "./review-page-routing.module";
import { ReviewPageComponent } from '../review/review-page/review-page.component';
import { AppPaginationModule } from 'app/widgets/pagination/pagination.module';
import { AppPaginationComponent } from 'app/widgets/pagination/pagination.component';
import { MultiSelectModule } from 'primeng/components/multiselect/multiselect';
import { FlatpickrModule, FLATPICKR } from 'assets/angularx-flatpickr';
import * as flatpickr from 'flatpickr';
export function flatpickrFactory() {
  return flatpickr;
}
import { ReviewComponent } from '../../modal/review/review.component';
import { ReviewQueryPageComponent } from '../review/review-query-page/review-query-page.component';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ModalShareModule,
    ReviewPageRoutingModule,
    AppPaginationModule,
    MultiSelectModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  declarations: [
    ReviewPageComponent,
    ReviewComponent,
    ReviewQueryPageComponent
  ],

  entryComponents: [
    ReviewComponent,
    ReviewQueryPageComponent
  ]
})
export class ReviewPageModule { }
